package com.sz.common.pay.common;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Function: Payment Methods <br>
 * Author: siqishangshu <br>
 * Date: 2017-11-07 13:40:00
 * ##PINGAN , CITIC, TENPAY, ALIPAY
    pay.payment.METHODS=PINGAN,CITIC
 */
public class PaymentMethods {

    public static final String PINGAN = "PINGAN";
    public static final String CITIC  = "CITIC";
    public static final String TENPAY = "TEMPAY";
    public static final String ALIPAY = "ALIPAY";
    public static final List<String> METHODS = PayProperties.getOrDefault(PropertyName.PAY_PAYMENT_METHODS,new ArrayList<>(Arrays.asList(PINGAN)));

    public static boolean isSupport(String method){
       return METHODS.contains(method);
    }

}
